<template>
	<view>
		<image class="auditimg" :src="auditimg==1?'../../../static/user2/auditOk.png':(auditimg==2?'../../../static/user2/auditNo.png':'../../../static/user2/auditd.png')"></image>
		<text class="auditFont">{{auditimg==1?'审核已通过':(auditimg==2?'审核未通过':'信息已提交，等待审核中')}}</text>
		
		<view @click="gouserCenter" v-if="auditimg==3" class="viewSubmissions">
			等待后台审核中，返回个人中心！
		</view>
		<view @click="gousercenter" v-if="auditimg==2" class="viewSubmissions">
			申请失败，再次申请！
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				auditimg:'',
			};
		},
		onLoad(option) {
			var self=this
			self.auditimg=option.id
			console.log(option.id)
		},
		methods:{
			gousercenter(){
				uni.navigateTo({
					url:"./userCenter"
				})
			},
			gouserCenter(){
				uni.switchTab({
					url:"../user"
				})
				
			}
		}
	}
</script>

<style lang="scss">
        .auditimg{
			width: 328rpx;
			height: 308rpx;
			position: absolute;
			top: 180rpx;
			left: 231rpx;
		}
        .auditFont{
			display: block;
			width: 400rpx;
			height: 40rpx;
			font-size:30rpx;
			font-family:PingFang SC;
			font-weight:bold;
			color:rgba(142,142,142,1);
			display: flex;
			align-items: center;
			justify-content: center;
			position: absolute;
			top: 528rpx;
			left: 175rpx;
		}
        .viewSubmissions{
			width:680rpx;
			height:90rpx;
			background:rgba(115,34,216,1);
			box-shadow:0rpx 0rpx 18rpx 2rpx rgba(115,34,216,0.3);
			border-radius:20rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			font-size:38rpx;
			font-family:PingFang SC;
			font-weight:bold;
			color:rgba(255,255,255,1);
			position: absolute;
			top: 606rpx;
			left: 35rpx;
		}
</style>
